package com.lanyun.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class Procurement {
    // 采购清单ID
    private Integer pcm_ids;
    // 申请日期
    private Date pcm_createdate;
    // 审核日期
    private Date pcm_auditdate;
    // 开始日期
    private Date pcm_startdate;
    // 结束日期
    private Date pcm_enddate;
    // 下单员
    private Admin adminpart;
    // 审查员
    private Admin adminauditor;
    // 采购员
    private Admin adminbuyer;
    // 库管员
    private Admin adminkeeper;
    // 供应商
    private Supplier supplier;
    // 运单号
    private String pcm_waybill;
    // 订单状态
    private String pcm_status;

    private Double pricrs;

// has one

    // 一个采购订单拥有多个购买详情
    // has many
    List<Procurement_etails> procurement_etails;

    public Integer getPcm_ids() {
        return pcm_ids;
    }

    public void setPcm_ids(Integer pcm_id) {
        this.pcm_ids = pcm_id;
    }

    public Date getPcm_createdate() {
        return pcm_createdate;
    }

    public void setPcm_createdate(Date pcm_createdate) {
        this.pcm_createdate = pcm_createdate;
    }

    public Date getPcm_auditdate() {
        return pcm_auditdate;
    }

    public void setPcm_auditdate(Date pcm_auditdate) {
        this.pcm_auditdate = pcm_auditdate;
    }

    public Date getPcm_startdate() {
        return pcm_startdate;
    }

    public void setPcm_startdate(Date pcm_startdate) {
        this.pcm_startdate = pcm_startdate;
    }

    public Date getPcm_enddate() {
        return pcm_enddate;
    }

    public void setPcm_enddate(Date pcm_enddate) {
        this.pcm_enddate = pcm_enddate;
    }

    public String getPcm_waybill() {
        return pcm_waybill;
    }

    public void setPcm_waybill(String pcm_waybill) {
        this.pcm_waybill = pcm_waybill;
    }

    public String getPcm_status() {
        return pcm_status;
    }

    public void setPcm_status(String pcm_status) {
        this.pcm_status = pcm_status;
    }

    public List<Procurement_etails> getProcurement_etails() {
        return procurement_etails;
    }

    public void setProcurement_etails(List<Procurement_etails> procurement_etails) {
        this.procurement_etails = procurement_etails;
    }

    public Admin getAdminpart() {
        return adminpart;
    }

    public void setAdminpart(Admin adminpart) {
        this.adminpart = adminpart;
    }

    public Admin getAdminauditor() {
        return adminauditor;
    }

    public void setAdminauditor(Admin adminauditor) {
        this.adminauditor = adminauditor;
    }

    public Admin getAdminbuyer() {
        return adminbuyer;
    }

    public void setAdminbuyer(Admin adminbuyer) {
        this.adminbuyer = adminbuyer;
    }

    public Admin getAdminkeeper() {
        return adminkeeper;
    }

    public void setAdminkeeper(Admin adminkeeper) {
        this.adminkeeper = adminkeeper;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Double getPricrs() {
        return pricrs;
    }

    public void setPricrs(Double pricrs) {
        this.pricrs = pricrs;
    }

    public Procurement(){}

    public Procurement(Date pcm_createdate,Admin adminpart,Supplier supplier,String pcm_status) {
        this.pcm_createdate = pcm_createdate;
        this.adminpart = adminpart;
        this.supplier = supplier;
        this.pcm_status = pcm_status;
    }

    @Override
    public String toString() {
        return "Procurement{" +
                "pcm_id=" + pcm_ids +
                ", pcm_createdate=" + pcm_createdate +
                ", pcm_auditdate=" + pcm_auditdate +
                ", pcm_startdate=" + pcm_startdate +
                ", pcm_enddate=" + pcm_enddate +
                ", adminpart=" + adminpart +
                ", adminauditor=" + adminauditor +
                ", adminbuyer=" + adminbuyer +
                ", adminkeeper=" + adminkeeper +
                ", supplier=" + supplier +
                ", pcm_waybill=" + pcm_waybill +
                ", pcm_status='" + pcm_status + '\'' +
                ", procurement_etails=" + procurement_etails +
                '}';
    }
}
